/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package posdemo;

/**
 *
 * @author sd
 */
public abstract class Card {
    private String type;
    private float amount;

    public Card() {
    }

    public Card(String type, float amount) {
        this.type = type;
        this.amount = amount;
    }

    public String getType() {
        return type;
    }

    public float getAmount() {
        return amount;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setAmount(float amount) {
        this.amount = amount;
    }
    public abstract float shouldPay(float price);
    
}
